package com.liuxvru.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liuxvru.project.domain.Work;
import com.liuxvru.project.vo.WorkAllInitVo;

import java.util.List;

/**
 * 工作项Service接口
 *
 * @author liuxvru
 * @date 2024-11-22
 */
public interface IWorkService extends IService<Work> {

    /**
     * 查询工作项列表
     *
     * @param work 工作项
     * @return 工作项集合
     */
    public List<Work> selectWorkList(Work work);

    List<Work> getWorkByProjectId(Long projectId);

    int add(Work work);

    List<Work> getWorkBySprintId(Long sprintId);

    List<Work> getWorkByNoSprintId(Long projectId);

    int workAddSprintByIds(Long sprintId, List<Long> workIds);

    int workRemoveSprintByIds(Long sprintId, List<Long> workIds);

    List<Work> listNeed(Long projectId, Work work);

    int updateWorkById(Work work);

    int remove(Long workItemId);

    WorkAllInitVo workAllInit(Long workItemId);
}
